3.1150 \(\int (1-2 x) (2+3 x) (3+5 x) \, dx\)

Optimal. Leaf size=25 \[ -\frac{15 x^4}{2}-\frac{23 x^3}{3}+\frac{7 x^2}{2}+6 x \]

[Out]

6*x + (7*x^2)/2 - (23*x^3)/3 - (15*x^4)/2

________________________________________________________________________________________

Rubi [A]  time = 0.0100393, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062, Rules used = {77} \[ -\frac{15 x^4}{2}-\frac{23 x^3}{3}+\frac{7 x^2}{2}+6 x \]

Antiderivative was successfully verified.

[In]

Int[(1 - 2*x)*(2 + 3*x)*(3 + 5*x),x]

[Out]

6*x + (7*x^2)/2 - (23*x^3)/3 - (15*x^4)/2

Rule 77

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rubi steps

\begin{align*} \int (1-2 x) (2+3 x) (3+5 x) \, dx &=\int \left (6+7 x-23 x^2-30 x^3\right ) \, dx\\ &=6 x+\frac{7 x^2}{2}-\frac{23 x^3}{3}-\frac{15 x^4}{2}\\ \end{align*}

Mathematica [A]  time = 0.0011068, size = 25, normalized size = 1. \[ -\frac{15 x^4}{2}-\frac{23 x^3}{3}+\frac{7 x^2}{2}+6 x \]

Antiderivative was successfully verified.

[In]

Integrate[(1 - 2*x)*(2 + 3*x)*(3 + 5*x),x]

[Out]

6*x + (7*x^2)/2 - (23*x^3)/3 - (15*x^4)/2

________________________________________________________________________________________

Maple [A]  time = 0.002, size = 20, normalized size = 0.8 \begin{align*} 6\,x+{\frac{7\,{x}^{2}}{2}}-{\frac{23\,{x}^{3}}{3}}-{\frac{15\,{x}^{4}}{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1-2*x)*(2+3*x)*(3+5*x),x)

[Out]

6*x+7/2*x^2-23/3*x^3-15/2*x^4

________________________________________________________________________________________

Maxima [A]  time = 1.15471, size = 26, normalized size = 1.04 \begin{align*} -\frac{15}{2} \, x^{4} - \frac{23}{3} \, x^{3} + \frac{7}{2} \, x^{2} + 6 \, x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-2*x)*(2+3*x)*(3+5*x),x, algorithm="maxima")

[Out]

-15/2*x^4 - 23/3*x^3 + 7/2*x^2 + 6*x

________________________________________________________________________________________

Fricas [A]  time = 1.30139, size = 51, normalized size = 2.04 \begin{align*} -\frac{15}{2} x^{4} - \frac{23}{3} x^{3} + \frac{7}{2} x^{2} + 6 x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-2*x)*(2+3*x)*(3+5*x),x, algorithm="fricas")

[Out]

-15/2*x^4 - 23/3*x^3 + 7/2*x^2 + 6*x

________________________________________________________________________________________

Sympy [A]  time = 0.05262, size = 22, normalized size = 0.88 \begin{align*} - \frac{15 x^{4}}{2} - \frac{23 x^{3}}{3} + \frac{7 x^{2}}{2} + 6 x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-2*x)*(2+3*x)*(3+5*x),x)

[Out]

-15*x**4/2 - 23*x**3/3 + 7*x**2/2 + 6*x

________________________________________________________________________________________

Giac [A]  time = 3.32116, size = 26, normalized size = 1.04 \begin{align*} -\frac{15}{2} \, x^{4} - \frac{23}{3} \, x^{3} + \frac{7}{2} \, x^{2} + 6 \, x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-2*x)*(2+3*x)*(3+5*x),x, algorithm="giac")

[Out]

-15/2*x^4 - 23/3*x^3 + 7/2*x^2 + 6*x